package com.cgsrp.cgsrp_shopping.service;

import com.cgsrp.cgsrp_shopping.domain.ShoppingCart;
import com.cgsrp.utils.Result;

public interface ShoppingCartService{


    int deleteByPrimaryKey(Integer id);

    int insert(ShoppingCart record);

    int insertSelective(ShoppingCart record);

    ShoppingCart selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShoppingCart record);

    int updateByPrimaryKey(ShoppingCart record);

    Result add(Integer userId, Integer productId, Integer number);

    Result list(Integer curPage, Integer pageSize, Integer userId);
}
